package com.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 
 */
public class Festival implements Serializable {
    private Integer fid;

    private String fname;

    private String fdescribe;

    private Date fdate;

    private List<Platformactivityrecod> platformactivityrecods;

    public List<Platformactivityrecod> getPlatformactivityrecods() {
        return platformactivityrecods;
    }

    public void setPlatformactivityrecods(List<Platformactivityrecod> platformactivityrecods) {
        this.platformactivityrecods = platformactivityrecods;
    }

    private static final long serialVersionUID = 1L;

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFdescribe() {
        return fdescribe;
    }

    public void setFdescribe(String fdescribe) {
        this.fdescribe = fdescribe;
    }

    public Date getFdate() {
        return fdate;
    }

    public void setFdate(Date fdate) {
        this.fdate = fdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Festival other = (Festival) that;
        return (this.getFid() == null ? other.getFid() == null : this.getFid().equals(other.getFid()))
            && (this.getFname() == null ? other.getFname() == null : this.getFname().equals(other.getFname()))
            && (this.getFdescribe() == null ? other.getFdescribe() == null : this.getFdescribe().equals(other.getFdescribe()))
            && (this.getFdate() == null ? other.getFdate() == null : this.getFdate().equals(other.getFdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFid() == null) ? 0 : getFid().hashCode());
        result = prime * result + ((getFname() == null) ? 0 : getFname().hashCode());
        result = prime * result + ((getFdescribe() == null) ? 0 : getFdescribe().hashCode());
        result = prime * result + ((getFdate() == null) ? 0 : getFdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fid=").append(fid);
        sb.append(", fname=").append(fname);
        sb.append(", fdescribe=").append(fdescribe);
        sb.append(", fdate=").append(fdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}